# -*- coding: utf-8 -*-
"""
Created on Sun Sep 24 22:23:23 2017

@author: wqf
"""

import tkinter as tk

root = tk.Tk()
k = []
for color in range(16):
    k.append(tk.Label(root,text=str(color), bg="#ADFF2F",width=5))
    k[color].grid()

for color in range(16):
    k[color]["text"] = "a"

    
root.mainloop()